
import 'package:huajianshe_app/network/response/BaseResp.dart';
import 'package:json_annotation/json_annotation.dart';

part 'ResourceResp.g.dart';

@JsonSerializable()
class UploadResp extends BaseResp {

  UploadData? data;

  UploadResp();
  factory UploadResp.fromJson(Map<String, dynamic> json) => _$UploadRespFromJson(json);

  @override
  UploadResp parseFromMap(Map<String, dynamic> map) {
    return UploadResp.fromJson(map);
  }

}

@JsonSerializable()
class UploadData {
  int? id;
  String? url;
  @JsonKey(name: 'video_url')
  String? videoUrl;

  UploadData();

  factory UploadData.fromJson(Map<String, dynamic> json) => _$UploadDataFromJson(json);
}